import request from '@/utils/request'

// 查询AGV任务调度列表
export function listAgvTaskDispatch(query) {
  return request({
    url: '/wcs/agvTaskDispatch/list',
    method: 'get',
    params: query
  })
}

// 查询AGV任务调度详细
export function getAgvTaskDispatch(id) {
  return request({
    url: '/wcs/agvTaskDispatch/' + id,
    method: 'get'
  })
}

// 新增AGV任务调度
export function addAgvTaskDispatch(data) {
  return request({
    url: '/wcs/agvTaskDispatch',
    method: 'post',
    data: data
  })
}

// 修改AGV任务调度
export function updateAgvTaskDispatch(data) {
  return request({
    url: '/wcs/agvTaskDispatch',
    method: 'put',
    data: data
  })
}

// 删除AGV任务调度
export function delAgvTaskDispatch(id) {
  return request({
    url: '/wcs/agvTaskDispatch/' + id,
    method: 'delete'
  })
}
